import request from '@/utils/request'

/**
 * 退货物码明细分页查询
 * @param {查询条件} data
 */
export function listRefshipdetail(query) {
  return request({
    url: 'order/Refshipdetail/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增退货物码明细
 * @param data
 */
export function addRefshipdetail(data) {
  return request({
    url: 'order/Refshipdetail',
    method: 'post',
    data: data,
  })
}
/**
 * 修改退货物码明细
 * @param data
 */
export function updateRefshipdetail(data) {
  return request({
    url: 'order/Refshipdetail',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取退货物码明细详情
 * @param {Id}
 */
export function getRefshipdetail(id) {
  return request({
    url: 'order/Refshipdetail/' + id,
    method: 'get'
  })
}

/**
 * 删除退货物码明细
 * @param {主键} pid
 */
export function delRefshipdetail(pid) {
  return request({
    url: 'order/Refshipdetail/delete/' + pid,
    method: 'POST'
  })
}
